﻿<Page x:Class="Rifts.Creator.ClassSkills"
	  xmlns="http://schemas.microsoft.com/winfx/2006/xaml/presentation"
	  xmlns:x="http://schemas.microsoft.com/winfx/2006/xaml"
	  xmlns:mc="http://schemas.openxmlformats.org/markup-compatibility/2006" 
	  xmlns:d="http://schemas.microsoft.com/expression/blend/2008" 
	  mc:Ignorable="d" 
	  d:DesignHeight="300" d:DesignWidth="300"
	Title="ClassSkills">

	<!-- TODO: Add support for picking Hand-to-Hand skill? Or maybe that should go in the OCC Related skills section?-->
	<!-- TODO: Add a "Add all" button for use when IQ limits the number of available skills -->

	<StackPanel>
		<TextBlock Text="Select OCC/RCC Skills" />
		<ItemsControl ItemsSource="{Binding OccSkills}" DockPanel.Dock="Left" >
			<ItemsControl.ItemTemplate>
				<DataTemplate>
					<Button Margin="4" MinWidth="100" MinHeight="25" Click="Button_Click" Padding="8,4,8,4"  IsEnabled="{Binding MetRequirements}">
						<StackPanel Orientation="Horizontal" >
							<TextBlock Text="{Binding Name}" />
							<TextBlock Text="{Binding Score, StringFormat={} {0}%}" Visibility="{Binding Score, Converter={StaticResource NotZeroToVisibleConverter}}" />
						</StackPanel>
					</Button>
				</DataTemplate>
			</ItemsControl.ItemTemplate>
		</ItemsControl>
	</StackPanel>

</Page>
